package com.lanchuan.soft.controller;

import com.lanchuan.soft.service.IDictionaryService;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("dictionary")
@Log4j2
public class DictionaryController {

    private IDictionaryService dictionaryService;

    @Autowired
    public DictionaryController(IDictionaryService dictionaryService) {
        this.dictionaryService = dictionaryService;
    }

    // 全部队员列表
    @RequestMapping("findEventTypeList")
    public Map<String, Object> findEventTypeList() {
        return dictionaryService.findEventTypeList();
    }
}
